// * 异步loader
// * loader 中有异步操作时需要特别注意

module.exports = function (content, map, mate) {
  // * https://webpack.docschina.org/api/loaders/#thisasync
  // * this.async() 告诉 loader-runner 当前 loader 为异步loader
  const callback = this.async()

  setTimeout(() => {
    console.log('async')
    callback(null, content, map, mate)
  }, 1000)
}
